﻿
@model RTW.OA.Models.asset_reflect
@{

    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}

@section styles{

}
<div id="dMain">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox" style="margin-bottom: 0px;">
            <div class="ibox-title">
                <h4>@ViewBag.Title </h4>
            </div>
            <div class="ibox-content">
                @using (Html.BeginForm("Edit", "Asset", FormMethod.Post, new { area = "Common", id = "assetfrom", name = "assetfrom" }))
                {
                    @Html.AntiForgeryToken()

                    <div class="from-content">
                        <dl>
                            <dt>资产编号</dt>
                            <dd>
                                @Html.DisplayFor(m => m.CPTL_NO, new { htmlAttributes = new { @class = "input normal form-control", datatype = "*", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>资产名称</dt>
                            <dd>
                                @Html.DisplayFor(m => m.CPTL_NAME, new { htmlAttributes = new { @class = "input normal form-control", datatype = "*", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>资产类别</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.TYPE_ID, ViewBag.TYPE_IDData as List<SelectListItem>, new { @Class = "form-control", disabled = true })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>所属部门</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.DEPT_ID, ViewBag.DEPT_IDData as List<SelectListItem>, new { @Class = "form-control", disabled = true })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>资产原值</dt>
                            <dd>
                                @Html.DisplayFor(m => m.CPTL_VAL, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>残值率</dt>
                            <dd>
                                @Html.DisplayFor(m => m.CPTL_BAL, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>折旧年限</dt>
                            <dd>
                                @Html.DisplayFor(m => m.DPCT_YY, new { htmlAttributes = new { Class = "input small form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>月折旧额</dt>
                            <dd>
                                @Html.DisplayFor(m => m.MON_DPCT, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>累计折旧</dt>
                            <dd>
                                @Html.DisplayFor(m => m.SUM_DPCT, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>资产性质</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.CPTL_KIND, ViewBag.CPTL_KINDData as List<SelectListItem>, new { @Class = "form-control", disabled = true })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>增加类型</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.PRCS_ID, ViewBag.PRCS_IDData as List<SelectListItem>, new { @Class = "form-control", disabled = true })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>折旧</dt>
                            <dd>
                                @Html.DisplayFor(m => m.FINISH_FLAG, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>增加时间</dt>
                            <dd>
                                @Html.DisplayFor(m => m.CREATE_DATE, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>减少日期</dt>
                            <dd>
                                @Html.DisplayFor(m => m.DCR_DATE, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>启用日期</dt>
                            <dd>
                                @Html.DisplayFor(m => m.FROM_YYMM, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>减少类型</dt>
                            <dd>
                                @Html.DisplayFor(m => m.DCR_PRCS_ID, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>保管人</dt>
                            <dd>
                                @Html.DisplayFor(m => m.KEEPER, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>备注</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.REMARK, new { @class = "input normal form-control", disabled = true })
                            </dd>
                        </dl>
                        @Html.HiddenFor(m => m.ID)

                    </div>
                    <div class="from-footer">
                        <div class="btn-wrap" style="position: fixed;">
                            <a class="btn btn-sm btn-warning radius" onclick="parent.closeTab('6202')">
                                <i class="iconfont icon-fanhui"></i>
                                取消关闭
                            </a>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
@section scripts{
    <script src="@Url.Content("~/Content/JS/common/WdatePicker/WdatePicker.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/jquery/Validform_v5.3.2_min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/artdialog/dialog-plus-min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/webuploader/webuploader.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.config.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.all.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/lang/zh-cn/zh-cn.js")"></script>
    @*<script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>*@

    <script src="@Url.Content("~/Content/JS/common/from.js")"></script>
    <script>
        $(function () {
            //初始化表单验证
            $("#assetfrom").initValidform();

        });
        function savefrom() {
            $("#assetfrom").submit();
        }

    </script>

}